import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from "../view/Home";
import Car from "../view/Car";
import Operations from "../view/Operations";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/home',
      component:Home,
      children:[
        {
        path:'/car',
        component:Car
        },
        {
          path:'/operations',
          component:Operations
        }
      ]
    },

  ]
})
